package com.taskcollection.factory;

/**
 * Created by Administrator on 2016/8/7 0007.
 */
public class Dan {
    static Dan dan;
    private Dan(){
        System.out.print("我是单黎的构造方法");
    }
    public static Dan getinstance(){
        if(dan==null){
            dan = new Dan();
        }
        return dan;
    }
}
